package com.chhuang.huaao.bean;


import com.chhuang.core.bean.QueryBean;
import com.chhuang.huaao.po.HaLog;

/**
* HaLog QueryBean
* @author ChHuang
* @date Sun Apr 30 20:19:00 CST 2017
*/
public class HaLogQueryBean extends QueryBean<HaLog>{
	private static final long serialVersionUID = 5101897483529031306L;
	private String logId;
	public String getLogId(){
		return logId;
	}
	public void setLogId(String logId){
		this.logId=logId;
	}
	private String logDesc;
	public String getLogDesc(){
		return logDesc;
	}
	public void setLogDesc(String logDesc){
		this.logDesc=logDesc;
	}
	private String machineId;
	public String getMachineId(){
		return machineId;
	}
	public void setMachineId(String machineId){
		this.machineId=machineId;
	}
	private String machineNum;
	public String getMachineNum(){
		return machineNum;
	}
	public void setMachineNum(String machineNum){
		this.machineNum=machineNum;
	}
	private String customerId;
	public String getCustomerId(){
		return customerId;
	}
	public void setCustomerId(String customerId){
		this.customerId=customerId;
	}
	private String customerAccount;
	public String getCustomerAccount(){
		return customerAccount;
	}
	public void setCustomerAccount(String customerAccount){
		this.customerAccount=customerAccount;
	}
	private String customerName;
	public String getCustomerName(){
		return customerName;
	}
	public void setCustomerName(String customerName){
		this.customerName=customerName;
	}
	private String createTime;
	public String getCreateTime(){
		return createTime;
	}
	public void setCreateTime(String createTime){
		this.createTime=createTime;
	}
	@Override
	public String fieldTransforColumn(String field) {
		if("logId".equals(field)){
			return "LOG_ID";
		}else if("logDesc".equals(field)){
			return "LOG_DESC";
		}else if("machineId".equals(field)){
			return "MACHINE_ID";
		}else if("machineNum".equals(field)){
			return "MACHINE_NUM";
		}else if("customerId".equals(field)){
			return "CUSTOMER_ID";
		}else if("customerAccount".equals(field)){
			return "CUSTOMER_ACCOUNT";
		}else if("customerName".equals(field)){
			return "CUSTOMER_NAME";
		}else if("createTime".equals(field)){
			return "CREATE_TIME";
		}else{
			return field;
		}
	}
	@Override
	public String columnTransforField(String column) {
		if("LOG_ID".equals(column)){
			return "logId";
		}else if("LOG_DESC".equals(column)){
			return "logDesc";
		}else if("MACHINE_ID".equals(column)){
			return "machineId";
		}else if("MACHINE_NUM".equals(column)){
			return "machineNum";
		}else if("CUSTOMER_ID".equals(column)){
			return "customerId";
		}else if("CUSTOMER_ACCOUNT".equals(column)){
			return "customerAccount";
		}else if("CUSTOMER_NAME".equals(column)){
			return "customerName";
		}else if("CREATE_TIME".equals(column)){
			return "createTime";
		}else{
			return column;
		}
	}
}